package com.skyable.common.constants.param;

/**
 * @author GaoYuan
 * @title: CommonParams
 * @projectName spring-cloud-oauth2-demo
 * @description: TODO
 * @date 2021/4/1314:58
 */
public class CommonParams {

    public static String HEADER_AUTHORIZATION = "Authorization";
    public static String HEADER_AUTHORIZATION_TOKEN = "token";
    public static String HEADER_USER_INFO = "UserInfo";
    public static String HEADER_USER_NAME = "UserName";

    public static String HEADER_USER_ID = "UserId";
    public static String HEADER_USER_DOMAIN_ID = "UserDomainId";

    /**
     * 验证码
     */
    public static String CODE = "code";
    /**
     * 手机号
     */
    public static String PHONE = "phone";
    /**
     * OPEN ID
     */
    public static String OPEN_ID = "openId";
    /**
     * token
     */
    public static String TOKEN = "token";
    /**
     * token过期时间
     */
    public static String TOKEN_EXPIRE = "token_expire";
    /**
     * 刷新token
     */
    public static String REFRESH_TOKEN = "refresh_token";
    /**
     * 刷新token过期时间
     */
    public static String REFRESH_TOKEN_EXPIRE = "refresh_token_expire";

    /** --------------------------------------接入层参数------------------------------------*/
    /**
     * error
     */
    public static String ERROR = "error";

    /**
     * errorCode
     */
    public static String ERROR_CODE = "errorCode";

    /**
     * description
     */
    public static String ERROR_DESC = "description";

    /**
     * majorDomainId
     */
    public static String MAJOR_DOMAIN_ID = "majorDomainId";


    /** ------------------------------------用户参数--------------------------------------- */
    public static String USER_PERMISSION_CODE_LIST = "permissionCodeList";
    public static String COMPANY_TABLE_NAME = "_account_info";

    /** ------------------------------------数据库参数--------------------------------------- */
    public static String DATA_BASE_ROLE_ID = "role_id";
    public static String DATA_BASE_USER_ID = "user_id";

    /** ------------------------------------sms参数--------------------------------------- */
    public static String SMS_SID = "sid";
    public static String SMS_APP_ID = "appid";
    public static String SMS_TEMPLATE_ID = "templateid";
    public static String SMS_PARAM = "param";
    public static String SMS_MOBILE = "mobile";
    public static String SMS_MSG = "msg";
    public static String SMS_PHONE = "phone";
    public static String SMS_PASS = "pass";
    public static String SMS_REASON = "reason";

    /** ------------------------------------排序字段--------------------------------------- */
    public static String ORDER_NUM = "order_num";
    public static String ORDER_CREATE_TIME = "create_time";
    public static String ORDER_APPLY_TIME = "apply_time";
}
